<?php

namespace common\Table\InputClick;

use common\Table\baseTable;

class KuaiyouEffectiveClickTable extends baseTable {

    private $_table = 'ad_effective_click_kuaiyou';

    public function insertEffectiveKuaiyou($columns) {
        return $this->db->insert($columns, $this->_table);
    }
    
    public function selectByIdfaAndAppId($idfa, $appId) {
        return $this->db->selectOne('select id from '. $this->_table .' where idfa=:idfa and appid=:appid', array('idfa' => $idfa, 'appid' => $appId));
    }
}
